const state = {
    n:0,
    sum:0
}
const mutations = {
    SUM(state,N){
        state.sum+=N
    }
}
const actions = {
    sum({commit},N){
        commit('SUM',N)
    }
}
export default {
    state,
    mutations,
    actions
}